.class Lcom/nemustech/regina/widgets/clock/ClockWidget$18;
.super Ljava/lang/Object;
.source "ClockWidget.java"

# interfaces
.implements Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/nemustech/regina/widgets/clock/ClockWidget;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V
    .locals 0
    .parameter

    .prologue
    .line 820
    iput-object p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onLongPressdown(Lcom/nemustech/tiffany/world/TFModel;IFF)Z
    .locals 1
    .parameter "model"
    .parameter "faceIndex"
    .parameter "x"
    .parameter "y"

    .prologue
    .line 912
    const/4 v0, 0x0

    return v0
.end method

.method public onSelected(Lcom/nemustech/tiffany/world/TFModel;IFF)Z
    .locals 1
    .parameter "model"
    .parameter "faceIndex"
    .parameter "x"
    .parameter "y"

    .prologue
    .line 903
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1400(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 904
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1400(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->runActorByGadget()V

    .line 905
    :cond_0
    const/4 v0, 0x1

    return v0
.end method

.method public onTouchDown(Lcom/nemustech/tiffany/world/TFModel;IFF)Z
    .locals 11
    .parameter "model"
    .parameter "faceIndex"
    .parameter "x"
    .parameter "y"

    .prologue
    const/4 v8, 0x0

    const/4 v9, 0x0

    const/4 v10, 0x1

    .line 844
    if-nez p2, :cond_2

    .line 845
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-virtual {v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getLeft2D()I

    move-result v7

    int-to-float v7, v7

    sub-float v3, p3, v7

    .line 846
    .local v3, rx:F
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-virtual {v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getTop2D()I

    move-result v7

    int-to-float v7, v7

    sub-float v4, p4, v7

    .line 848
    .local v4, ry:F
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1700(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/util/List;

    move-result-object v7

    invoke-interface {v7}, Ljava/util/List;->size()I

    move-result v5

    .line 850
    .local v5, size:I
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7, v8}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1402(Lcom/nemustech/regina/widgets/clock/ClockWidget;Lcom/nemustech/regina/ElementReginaWidget$Gadget;)Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    .line 851
    const/4 v2, 0x0

    .local v2, index:I
    :goto_0
    if-ge v2, v5, :cond_1

    .line 852
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1700(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/util/List;

    move-result-object v7

    invoke-interface {v7, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    .line 853
    .local v1, gadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    float-to-int v7, v3

    float-to-int v8, v4

    invoke-virtual {v1, v7, v8}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->contains(II)Z

    move-result v7

    if-eqz v7, :cond_0

    .line 854
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1402(Lcom/nemustech/regina/widgets/clock/ClockWidget;Lcom/nemustech/regina/ElementReginaWidget$Gadget;)Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    .line 855
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1800(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v7

    iget-object v8, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v8}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1900(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v8

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->getTouchedArea()Landroid/graphics/Rect;

    move-result-object v9

    invoke-virtual {v1, v7, v8, v9}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->showClickedHighLightArea(Lcom/nemustech/tiffany/world/TFPanel;Lcom/nemustech/tiffany/world/TFPanel;Landroid/graphics/Rect;)V

    move v7, v10

    .line 897
    .end local v1           #gadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    .end local v5           #size:I
    :goto_1
    return v7

    .line 851
    .restart local v1       #gadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    .restart local v5       #size:I
    :cond_0
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .end local v1           #gadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    :cond_1
    move v7, v9

    .line 859
    goto :goto_1

    .line 861
    .end local v2           #index:I
    .end local v3           #rx:F
    .end local v4           #ry:F
    .end local v5           #size:I
    :cond_2
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-virtual {v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getLeft2D()I

    move-result v7

    int-to-float v7, v7

    sub-float v3, p3, v7

    .line 862
    .restart local v3       #rx:F
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-virtual {v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getTop2D()I

    move-result v7

    int-to-float v7, v7

    sub-float v4, p4, v7

    .line 867
    .restart local v4       #ry:F
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7, v8}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1402(Lcom/nemustech/regina/widgets/clock/ClockWidget;Lcom/nemustech/regina/ElementReginaWidget$Gadget;)Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    .line 869
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$2000(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/util/List;

    move-result-object v7

    invoke-interface {v7}, Ljava/util/List;->size()I

    move-result v6

    .line 872
    .local v6, titleGadgetSize:I
    const/4 v2, 0x0

    .restart local v2       #index:I
    :goto_2
    if-ge v2, v6, :cond_4

    .line 873
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$2000(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/util/List;

    move-result-object v7

    invoke-interface {v7, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    .line 874
    .restart local v1       #gadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    float-to-int v7, v3

    float-to-int v8, v4

    invoke-virtual {v1, v7, v8}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->contains(II)Z

    move-result v7

    if-eqz v7, :cond_3

    .line 875
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1402(Lcom/nemustech/regina/widgets/clock/ClockWidget;Lcom/nemustech/regina/ElementReginaWidget$Gadget;)Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    .line 876
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1800(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v7

    iget-object v8, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v8}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$2100(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v8

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->getTouchedArea()Landroid/graphics/Rect;

    move-result-object v9

    invoke-virtual {v1, v7, v8, v9}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->showClickedHighLightArea(Lcom/nemustech/tiffany/world/TFPanel;Lcom/nemustech/tiffany/world/TFPanel;Landroid/graphics/Rect;)V

    move v7, v10

    .line 877
    goto :goto_1

    .line 872
    :cond_3
    add-int/lit8 v2, v2, 0x1

    goto :goto_2

    .line 881
    .end local v1           #gadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    :cond_4
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$2200(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/util/List;

    move-result-object v7

    invoke-interface {v7}, Ljava/util/List;->size()I

    move-result v0

    .line 884
    .local v0, centerGadgetSize:I
    const/4 v2, 0x0

    :goto_3
    if-ge v2, v0, :cond_6

    .line 885
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$2200(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/util/List;

    move-result-object v7

    invoke-interface {v7, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    .line 889
    .restart local v1       #gadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    float-to-int v7, v3

    float-to-int v8, v4

    invoke-virtual {v1, v7, v8}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->contains(II)Z

    move-result v7

    if-eqz v7, :cond_5

    .line 890
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1402(Lcom/nemustech/regina/widgets/clock/ClockWidget;Lcom/nemustech/regina/ElementReginaWidget$Gadget;)Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    .line 891
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1800(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v7

    iget-object v8, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v8}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$2300(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v8

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->getTouchedArea()Landroid/graphics/Rect;

    move-result-object v9

    invoke-virtual {v1, v7, v8, v9}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->showClickedHighLightArea(Lcom/nemustech/tiffany/world/TFPanel;Lcom/nemustech/tiffany/world/TFPanel;Landroid/graphics/Rect;)V

    move v7, v10

    .line 892
    goto/16 :goto_1

    .line 884
    :cond_5
    add-int/lit8 v2, v2, 0x1

    goto :goto_3

    .end local v1           #gadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    :cond_6
    move v7, v9

    .line 897
    goto/16 :goto_1
.end method

.method public onTouchDrag(Lcom/nemustech/tiffany/world/TFModel;IFFFFI)Z
    .locals 1
    .parameter "model"
    .parameter "faceIndex"
    .parameter "sx"
    .parameter "sy"
    .parameter "ex"
    .parameter "ey"
    .parameter "tickPassed"

    .prologue
    .line 839
    const/4 v0, 0x0

    return v0
.end method

.method public onTouchUp(Lcom/nemustech/tiffany/world/TFModel;IFF)Z
    .locals 3
    .parameter "model"
    .parameter "faceIndex"
    .parameter "x"
    .parameter "y"

    .prologue
    const/4 v2, 0x1

    .line 824
    if-nez p2, :cond_1

    .line 825
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1400(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 826
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1400(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    move-result-object v0

    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1500(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->hideClickedHighLightArea(Lcom/nemustech/tiffany/world/TFPanel;)V

    :cond_0
    move v0, v2

    .line 831
    :goto_0
    return v0

    .line 829
    :cond_1
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1400(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 830
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1400(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    move-result-object v0

    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->hideClickedHighLightArea(Lcom/nemustech/tiffany/world/TFPanel;)V

    :cond_2
    move v0, v2

    .line 831
    goto :goto_0
.end method
